#include <iostream>
#include <string>
#include <cctype>

using std::cout; using std::endl; using std::string;

bool any_capital(string const& str)
{
	for (auto ch : str)
		if (isupper(ch)) return true;
	return false;
}

void to_lowercase(string& str)
{
	for (auto& ch : str) ch = tolower(ch);
}

int main()
{
	string hello("Hello World!");
	cout << any_capital(hello) << endl;

	to_lowercase(hello);
	cout << hello << endl;

	return 0;
}